import { request } from '@/utils'

export default {
  // 获取角色列表
  getRoleList: (params = {}) => request.get('/sys/role/page', { params }),

  // 获取街道列表
  getStreetList: (params = {}) => request.get('/sys/peoplebaseinfo/select/street', { params }),

  // 获取用户列表
  getUserList: (params = {}) => request.get('/sys/user/page', { params }),

  // 添加或更新用户
  updateUser: (params = {}) => request.post('/sys/user/add_or_update', params),

  // 删除用户
  delUser: (params = {}) => request.post('/sys/user/delete', params),

  // 启用
  open: (params = {}) => request.post('/sys/user/enableUser', params),

  // 禁用
  close: (params = {}) => request.post('/sys/user/disableUser', params),
}
